package com.haixinga.commbiz.member.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/** webmvc配置 */
@Configuration
public class WebmvcConfig implements WebMvcConfigurer {

    @Autowired
    private ApiResInterceptor apiResInterceptor;

    @Autowired private CheckSelectedCommInterceptor checkSelectedCommInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(apiResInterceptor);

        //selected cmId  选择的xx的统一校验规则。
        //registry.addInterceptor(checkSelectedCommInterceptor).addPathPatterns("/api/scm/**");
    }
}
